package com.xhb.campusservices.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xhb.campusservices.enums.OrderState;
import lombok.Data;

/**
 * 
 * @TableName 订单表
 */
@TableName(value ="orders")
@Data
public class Orders implements Serializable {
    /**
     * 订单ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 任务ID
     */
    private Long taskid;

    /**
     * 订单状态
     * 订单状态为0时是 进行中，为1时是 已完成
     */
    private OrderState orderstate;

    /**
     * 跑腿人ID
     */
    private Long userid;

    /**
     * 接单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date ordertime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}